$.fx.speeds._default = 1000;
$(function () {
    $("#login-popup").dialog({
        autoOpen: false,
        show: "fade",
        hide: "fade"
    });

    $("#opener").click(function () {
        $("#login-popup").dialog("open");
        return false;
    });
    var minWidth = $("#login-popup").dialog("option", "width");

    // setter
    $("#login-popup").dialog("option", "width", 500);
    $("#popUpLogin_LoginButton").dialog("close");
    $(".ui-widget-overlay").css("background", "#000");
});

$(function () {
    var $overlay = $('<div class="ui-overlay"><div class="ui-widget-overlay"></div></div>').hide().appendTo('body');
    $overlay.fadeIn();

    $(window).resize(function () {
        $overlay.width($(document).width());
        $overlay.height($(document).height());
    });
   
});

